package com.zhdl.network.strategy.common;

/**
 * Hardware-协议选择 ModbusTcp/ModbusRtu
 */
public class ProtocolContext implements NetworkStrategy {

    public NetworkStrategy networkStrategy;

    public ProtocolContext(NetworkStrategy networkStrategy) {
        this.networkStrategy = networkStrategy;
    }

    @Override
    public void sendCmd(String cmd) {
        networkStrategy.sendCmd(cmd);
    }
}
